package cn.kgc.springbootdemo.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.lang.reflect.MalformedParameterizedTypeException;

/**
 * <h3>springbootdemo</h3>
 * <p>登录表单</p>
 *
 * @author : DongZeJian
 * @date : 2021-03-26 16:53
 **/
@ApiModel("登录表单")
@Data
public class LoginForm implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户账号",required = true)
    @NotBlank(message = "用户账号不能为空")
    private String userCode;

    @ApiModelProperty(value = "用户密码",required = true)
    @NotBlank(message = "用户密码不能为空")
    private String password;

    @ApiModelProperty(value = "验证码",required = true)
    @NotBlank(message = "验证码不能为空")
    private String verifyCode;

}
